package student

import "fmt"

func GetMoney(chengben float32, shijian int) (yingye float32, yuanyin string, kaixin bool) {
	yingye = 0
	if chengben < 100 {
		if shijian > 12 {
			yingye = chengben * 5
			yingye = yingye + float32(shijian)*2
			return yingye, "时间充足", true
		} else {
			yingye = chengben * 3
			return yingye, "时间减少", false
		}
	} else if chengben < 1000 {
		yingye = chengben * 3
		if shijian > 20 {

		}
		return yingye, "缺少时间", false
	} else if chengben >= 1000 {
		yingye = chengben * 5
		return yingye, "成本充足", true
	}
	return yingye, "不知道原因", true
}

func Jiafen() {
	var name string
	fmt.Printf("请输入你要修改考勤的人的姓名")
	fmt.Scanln(&name)
	var beOperSN string
	var recoedsList []Records
	darabasse.DB.Raw("*SELECT * from classmates.records where name =?", name).Scan(&RecordsList)

}
type Logs struct {
	Id     int
	OpName string
}

func SaveStudentRecords() {
	var allstudents []database.classmate
	database.DB.Raw("select * from classmates.classmates").Scan(&allStudents)
	for _, stu := range allStudents {
		currentFile, err := os.Create() {
		case condition:
			
		}
	}
}